package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.SqlType;
import org.zoomdev.zoom.dao.ddl._DDL_Column;
import org.zoomdev.zoom.dao.ddl._DDL_CompoundPrimary;
import org.zoomdev.zoom.dao.ddl._DDL_Table;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_CompoundPrimary(columns = {"code", "dev_id"})
@_DDL_Table(name = "b_upgrade", simpleName = "", engine = MysqlDriver.InnoDB, comment = "版本升级过程")
public class _DDL_BUpgrade {

    @_DDL_Column(name = "code", type = SqlType.INT_UNSIGNED, nullable = false, comment = "版本号码")
    private Long code;

    @_DDL_Column(name = "dev_id", type = SqlType.INT_UNSIGNED, nullable = false, comment = "设备id")
    private Long devId;

    @_DDL_Column(name = "immediate", type = SqlType.TINYINT_UNSIGNED, comment = "是否立即升级")
    private Integer immediate;

    @_DDL_Column(name = "cr_time", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP, comment = "创建时间")
    private java.sql.Timestamp crTime;

    @_DDL_Column(name = "state", type = SqlType.TINYINT_UNSIGNED, comment = "升级状态")
    private Integer state;

}
